<style type="text/css">
    .ml35 {
      margin-left: 35px;
    }
  </style>

<div class="col-sm-12 mt20">

    <div class="panel panel-default">
        <div class="panel-body" ng-keyup="myKeyup($event)">
            <div class="col-sm-2">
                <div class="input-group" datetimepicker ng-model="vm.date" options="vm.options">
                    <input class="form-control"/>
                    <span class="input-group-addon">
                        <span class="glyphicon glyphicon-calendar"></span>
                    </span>
                </div>
            </div>
            <div class="col-sm-2">
                <div class="input-group" datetimepicker ng-model="vm1.date" options="vm1.options">
                    <input class="form-control"/>
                    <span class="input-group-addon">
                        <span class="glyphicon glyphicon-calendar"></span>
                    </span>
                </div>
            </div>
            <div class="col-sm-2">
                <input type="text" class="form-control" placeholder="用户昵称" ng-model="searchform.nickname">
            </div>
            <div class="col-sm-1 form-group" style="margin-top:10px">
                <label class="control-label">会员总数</label>
            </div>
            <div class="col-sm-1 form-group" style="margin-top:10px">
                <label class="control-label">{{bigTotalItems}}</label>
            </div>
            <!-- <div class="col-sm-2 col-sm-offset-6">
                <button class="btn btn-success btn-block" ng-click="add()">邀请分销商</button>
            </div> -->
            <div class="col-sm-2 pull-right">
                <button class="btn btn-info search btn-block" ng-click="loadlist()">立即搜索</button>
            </div>
        </div>

        <div class="panel-body">
            <table class="table table-striped table-bordered dataTable table-condensed tree_table" style="table-layout:fixed">
                <thead>
                    <tr>
                        <th class="text-center" style="width: 10%">用户头像</th>
                        <th class="text-center" style="width: 15%">用户昵称</th>
                        <th class="text-center" style="width: 10%">分销商头像</th>
                        <th class="text-center" style="width: 15%">分销商昵称</th>
                        <th class="text-center" style="width: 15%">创建时间</th>
                        <th class="text-center" style="width: 10%">第几位</th>
                        <th class="text-center" style="width: 13%">会员消费金额</th>
                        <th class="text-center" style="width: 12%">操作</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="obj in objs">
                        <td class="text-center">
                            <img ng-src="{{obj.headimg}}" alt="头像" style="border-radius:100px" width="50px" height="50px">
                        </td>
                        <td class="text-center" style="vertical-align: middle">{{obj.nickname}}</td>
                        <td class="text-center">
                            <img ng-src="{{obj.pheadimg}}" alt="分销商头像" style="border-radius:100px" width="50px" height="50px">
                        </td>
                        <td class="text-center" style="vertical-align: middle">{{obj.pnickname}}</td>
                        <td class="text-center" style="vertical-align: middle">{{obj.create_time}}</td>
                        <td class="text-center" style="vertical-align: middle">{{obj.row_num}}</td>
                        <td class="text-center" style="vertical-align: middle">{{(obj.all_pay_price/100) | currency: '￥'}}</td>
                        <td class="text-center" style="vertical-align: middle">
                            <button type="button" class="btn btn-info btn-xs" ng-click="seeLevel(obj)">订单查询</button>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>

        <div class="text-right" style="background-color: white; margin-right: 30px">
            <pagination total-items="bigTotalItems" ng-model="bigCurrentPage" ng-change="loadlist()" previous-text="上一页" next-text="下一页"
                first-text="首页" last-text="尾页" max-size="5" boundary-links="true" rotate="false" items-per-page="itemsPerPage"
                class="m-t-none m-b"></pagination>
        </div>

    </div>
</div>